﻿Imports System.Data
Imports System.Data.SqlClient
Public Class ConnectionFactory

    Private Shared connection As SqlConnection


    Shared Function GetConnection() As SqlConnection
        If connection Is Nothing Then
            connection = New SqlConnection(ConfigurationManager.ConnectionStrings("interfacenet").ConnectionString)
        End If
        Return connection
    End Function



End Class
